import React, { Component } from 'react'
import { Switch, Route } from 'react-router-dom'
import ListHome from './subs/ListHome'
import ListAdd from './subs/ListAdd'
import ListDetail from './subs/ListDetail'

export default class list extends Component {
  render() {
    return (
      <div>
        <Switch>
          <Route exact path="/home/product/list" component={ListHome}></Route>
          {/* <Route path="/home/product/list/detail"></Route> */}
          <Route path="/home/product/list/add" component={ListAdd}></Route>
          <Route
            path="/home/product/list/detail"
            component={ListDetail}
          ></Route>
        </Switch>
      </div>
    )
  }
}
